# -*- coding: utf-8 -*-
import mod.client.extraClientApi as clientApifrom mod.client.ui.controls.baseUIControl import BaseUIControlfrom mod.client.ui.controls.buttonUIControl import ButtonUIControlfrom mod.client.ui.controls.imageUIControl import ImageUIControlfrom legendaryPowerClientScript.ui.base.baseComponent import BaseComponentfrom legendaryPowerClientScript.util import apiUtilclass ButtonComponent(BaseComponent):
    def SetText(self, text):
        """
        设置文本内容

        Args:
        - text (str): 文本内容
        """
        pass

    def SetSprite(self, path, type="default"):
        # type: (str) -> None
        """
        设置按钮图片
        Args:
        - path (str): 图片路径
        """
        pass

    def SetSpriteGray(self, isGray, type="default"):
        # type: (bool) -> None
        """
        将按钮图片变成灰色
        Args:
        - isGray (bool): 是否变成灰色
        """
        pass

    def SetTouchUp(self, callback):
        # type: (function) -> None
        """
        设置触摸抬起事件的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetTouchDown(self, callback):
        # type: (function) -> None
        """
        设置触摸按下事件的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetTouchCancel(self, callback):
        # type: (function) -> None
        """
        设置触摸取消事件的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetTouchMove(self, callback):
        # type: (function) -> None
        """
        设置触摸移动事件的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetTouchMoveIn(self, callback):
        # type: (function) -> None
        """
        设置触摸移进事件的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetTouchMoveOut(self, callback):
        # type: (function) -> None
        """
        设置触摸移出事件的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetTouchEnable(self, enable, setGray=True):
        # type: (bool, bool) -> None
        """
        设置按钮能否被点击。

        Args:
        - enable (bool): 是否能点击
        - setGray (bool): 不能点击的话，是否将其变成灰色。默认True
        """
        pass

    def SetHoverIn(self, cb):
        # type: (function) -> None
        """
        设置鼠标悬浮移入的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

    def SetHoverOut(self, cb):
        # type: (function) -> None
        """
        设置鼠标悬浮移出的回调函数

        Args:
        - callback (function): 回调函数
        """
        pass

